namespace Teamwish.Domain.Models
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;

    public partial class Orders
    {
        public int Id { get; set; }

        [StringLength(50)]
        public string OrderNo { get; set; }

        public int? UserId { get; set; }

        public DateTime? CreateDate { get; set; }

        public int? TotalNumber { get; set; }

        [Column(TypeName = "money")]
        public decimal? TotalMoney { get; set; }

        public byte? Status { get; set; } 

        [ForeignKey("UserId")]
        public Userinfo Userinfo { get; set; }

        public ICollection<OrderItem> OrderItems { get; set; }
    }
}
